<%@page import="com.wanmait.hotelManagement.vo.Room"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%String path = request.getContextPath();%>
<%
ArrayList<Room> allRoom = (ArrayList<Room>)request.getAttribute("allRoom");
for(Room room:allRoom){
if(room.getRoomState().getId()==1){
         %>
         	<button onclick="suibian(this)" style="width:95px;;height:93px;border: 3px solid #666666;  float:left;margin:2px; background:#99FF99;">
	             <input style="display: none;" value="<%=room.getId() %>" />
	             <input style="display: none;" value="<%=room.getRoomState().getId() %>" />
	             <label><%=room.getRoomNumber() %></label>
	             <label style="margin-top:-5px;"><%=room.getRoomState().getState() %></label>
	             <label class="roomName" style="margin-top:-5px;"><%=room.getRoomType().getRoomName() %></label>
	             <label style="margin-top:-5px;">￥<%=room.getRoomType().getRoomPrice() %></label>
	             <input style="display: none;" value="${item.standardPrice}" />
	             <input style="display: none;" value="${item.firstPrice}" />
	             <input style="display: none;" value="${item.firstDuration}" />
	         </button>
         <%	 
        	 }
        	 if(room.getRoomState().getId()==2){
         %>
        	 <button onclick="suibian(this)" style="width:95px;;height:93px;border: 3px solid #666666;  float:left;margin:2px; background:#f0f;">
	             <input style="display: none;" value="<%=room.getId() %>" />
	             <input style="display: none;" value="<%=room.getRoomState().getId() %>" />
	             <label><%=room.getRoomNumber() %></label>
	             <label style="margin-top:-5px;"><%=room.getRoomState().getState() %></label>
	             <label class="roomName" style="margin-top:-5px;"><%=room.getRoomType().getRoomName() %></label>
	             <label style="margin-top:-5px;">￥<%=room.getRoomType().getRoomPrice() %></label>
	             <input style="display: none;" value="${item.standardPrice}" />
	             <input style="display: none;" value="${item.firstPrice}" />
	             <input style="display: none;" value="${item.firstDuration}" />
	         </button>
         <%
        	 }
        	 if(room.getRoomState().getId()==3){
         %>
           	 <button onclick="suibian(this)" style="width:95px;;height:93px;border: 3px solid #666666;  float:left;margin:2px; background:#9ff;">
   	             <input style="display: none;" value="<%=room.getId() %>" />
   	             <input style="display: none;" value="<%=room.getRoomState().getId() %>" />
   	             <label><%=room.getRoomNumber() %></label>
   	             <label style="margin-top:-5px;"><%=room.getRoomState().getState() %></label>
   	             <label class="roomName" style="margin-top:-5px;"><%=room.getRoomType().getRoomName() %></label>
   	             <label style="margin-top:-5px;">￥<%=room.getRoomType().getRoomPrice() %></label>
   	             <input style="display: none;" value="${item.standardPrice}" />
   	             <input style="display: none;" value="${item.firstPrice}" />
   	             <input style="display: none;" value="${item.firstDuration}" />
   	         </button>
         <%
        	 }
        	 if(room.getRoomState().getId()==4){
         %>
             	 <button onclick="suibian(this)" style="width:95px;;height:93px;border: 3px solid #666666;  float:left;margin:2px; background:#f74;">
     	             <input style="display: none;" value="<%=room.getId() %>" />
     	             <input style="display: none;" value="<%=room.getRoomState().getId() %>" />
     	             <label><%=room.getRoomNumber() %></label>
     	             <label style="margin-top:-5px;"><%=room.getRoomState().getState() %></label>
     	             <label class="roomName" style="margin-top:-5px;"><%=room.getRoomType().getRoomName() %></label>
     	             <label style="margin-top:-5px;">￥<%=room.getRoomType().getRoomPrice() %></label>
     	             <input style="display: none;" value="${item.standardPrice}" />
     	             <input style="display: none;" value="${item.firstPrice}" />
     	             <input style="display: none;" value="${item.firstDuration}" />
     	         </button>
       	 <% 
        	 }
        	 if(room.getRoomState().getId()==5){
         %>
              	 <button onclick="suibian(this)" style="width:95px;;height:93px;border: 3px solid #666666;  float:left;margin:2px; background:#f08;">
      	             <input style="display: none;" value="<%=room.getId() %>" />
      	             <input style="display: none;" value="<%=room.getRoomState().getId() %>" />
      	             <label><%=room.getRoomNumber() %></label>
      	             <label style="margin-top:-5px;"><%=room.getRoomState().getState() %></label>
      	             <label class="roomName" style="margin-top:-5px;"><%=room.getRoomType().getRoomName() %></label>
      	             <label style="margin-top:-5px;">￥<%=room.getRoomType().getRoomPrice() %></label>
      	             <input style="display: none;" value="${item.standardPrice}" />
      	             <input style="display: none;" value="${item.firstPrice}" />
      	             <input style="display: none;" value="${item.firstDuration}" />
      	         </button>
       	 <% 	 
        	 }
        	 
         }
         %>
